package com.our.sys.project1.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.springside.modules.orm.grid.ViewField;

import com.our.sys.orm.hibernate.AuditableEntity;

/**
 * 收费项目
 * @author acer
 *
 */
@Entity
@Table(name = "B_Fees")
public class Fees extends AuditableEntity implements Serializable {

    private static final long serialVersionUID = 8210831822401372237L;
    @ViewField(header = "收费项目", width = 100, align = "left")
    private String feeProject;
    @ViewField(header = "接口代码", width = 100, align = "left")
    private String interCode;
    @ViewField(header = "计量单位", width = 100, align = "left")
    private String unit;
    @ViewField(header = "单价", width = 100, align = "left")
    private String price;
    @ViewField(header = "拼音码", width = 100, align = "left")
    private String py;
    @ViewField(header = "五笔码", width = 100, align = "left")
    private String wb;
    @ViewField(header = "备注", width = 100, align = "left")
    private String note;
    @ViewField
    private String state;//1:启用,2:停用

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "B_Fees")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFeeProject() {
        return feeProject;
    }

    public void setFeeProject(String feeProject) {
        this.feeProject = feeProject;
    }

    public String getInterCode() {
        return interCode;
    }

    public void setInterCode(String interCode) {
        this.interCode = interCode;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getPy() {
        return py;
    }

    public void setPy(String py) {
        this.py = py;
    }

    public String getWb() {
        return wb;
    }

    public void setWb(String wb) {
        this.wb = wb;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

}
